package com.hk.domain.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.hk.domain.entity.Student;
import lombok.AllArgsConstructor;
import lombok.Data;
import com.google.gson.annotations.SerializedName;
import lombok.NoArgsConstructor;

import java.util.Objects;

/**
 * @author: dpb
 * @Description TODO
 * @date: 2023/2/8 15:59
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student22 extends Student{

    /** 用于解决属性名和key不一致的情况，当前端传过来的字段名不一样的时候，我们可以在字段名上加上这个注解*/
    @JSONField(name = "abstract")
    private String username;

    @JSONField(name = "pwd")
    private String password;

    public Student22(Student student) {
        super(student);
    }

}
